geometricMean
Type
function
Summary
Returns the geometric mean of a list of numbers.
Syntax
geometricMean(<numbersList>)
Description
Use the geometricMean function to find the value that best represents a group of values for sets of positive numbers that are interpreted according to their product and not their sum.
The geometricMean function was added in LiveCode 6.1 to complement the average function.
If the numbersList is empty, the geometricMean function returns zero.
If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.
Parameters
Name | Type | Description |
---|---|---|
numbersList | A comma-separated list of numbers, or an expression that evaluates to such a list, or an array containing only numbers. |
Examples
geometricMean(4,36,45,50,75) -- returns 30
put geometricMean(importedList) into field "Geometric Mean"
Related
control structure: function
function: min, statRound, round, harmonicMean, variance, average, value, max, median, standardDeviation
glossary: return, value, math operation
Compatibility and Support
Introduced
LiveCode 6.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile